package com.hl.service;

/**
 * @author Hr
 * @date 2024/9/12 20:03
 */

import com.hl.domain.SearchCourse;
import com.hl.mapper.SearchCourseMapper;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SearchCourseService {
    @Autowired
    private SearchCourseMapper searchCourseMapper;

    public List<SearchCourse> searchCourses(String query) {
        return searchCourseMapper.searchCourses(query);
    }
}
